import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-register',
  templateUrl: './register.component.html',
  styleUrls: ['./register.component.scss']
})
export class RegisterComponent implements OnInit {
  avatars: string[];
  constructor() { }

  ngOnInit() {
    let arr = [1, 2, 3, 4, 5, 6];
    this.avatars = arr.map(a => `avatar${a}`);
    console.log(this.avatars);
  }

}
